<template>
  <!-- 工具栏 -->
  <div class="page-tools">
    <div class="left">
      <div class="tips">
        <i class="el-icon-info" />
        <span>数据一共 {{total}} 条</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    total: {
      required: true, // 要求父组件必须传递数据
      type: Number // 要求传递过来的数据，必须是数字类型
    }
  }
}
</script>

<style lang="scss" scoped>
.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  .left {
    width: 100%;
  }
  .tips {
    color: #909399;
    font-size: 14px;
    line-height: 30px;
    padding: 5px 15px;
    border-radius: 5px;
    background: #f4f4f5;
    i {
      margin-right: 10px;
      color: #909399;
    }
  }
}
</style>
